package xinyou.jh.net.scene
{
	import xinyou.jh.net.SocketManager;
	import xinyou.jh.net.JHSender;
	import xinyou.net.SocketConnection;
	
	public class SceneSender extends JHSender
	{
		public function SceneSender(socket:SocketConnection)
		{
			super(socket);
		}
		public function enterMainServer(authUserID:int,accountName:String):void
		{
			send([151,1],authUserID,accountName,2,1,0,"");
		}
		
		public function enterScene():void
		{
			send([151,5]);
		}
		public function moveTo(x:uint,y:uint):void
		{
			send([103,32],x,y);
		}
		public function moveOver(x:uint,y:uint):void
		{
			send([103,35],x,y);
		}
		/**
		 * 进入房间消息 
		 * 
		 */		
		public function enterSyn():void
		{
			send([103,0],0);
		}
		/**
		 * 创建角色
		 * 
		 */		
		public function createRole(nickName:String,gender:uint,face:uint):void
		{
			send([151,11],nickName,gender,0,face,0);
		}
		/**
		 * 删除角色
		 * 
		 */		
		public function delRole():void
		{
			send([151,13]);
		}
		
	}
}